window.onload=function (){
   var info= getQuery("errorInfo");
   if (info=="noland"){
       $("errorDiv").innerHTML="对不起，请先登录"
   }
}
function login(){
    axios.get("/user/login",{
        params:{
            userName:$("userName").value,
            pwd:$("pwd").value
        }
    }).then(resp=>{
        let info = resp.data;
        if (info=="ok"){
            location.href="../main/main.html"
        }else {
            $("errorDiv").innerHTML = "登陆失败";
        }
    })

}